package wx.use.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import wx.use.dao.WXUserPojoDao;
import wx.use.entity.WXUserPojo;
import wx.use.service.WXUserPojoService;

/*
 * 实现查询账单接口
 * 20201024
 */

@Service
public class WXUserPojoServiceImpl implements WXUserPojoService {

    @Resource
    private WXUserPojoDao wxUserPojoDao;
    
	public String WXUserPojoAdd(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		
		WXUserPojo wxUserPojo1=selectonebyName(wxUserPojo.getUSER_NAME());
        String result="";
        if(null==wxUserPojo1){
            int m=wxUserPojoDao.WXUserPojoAdd(wxUserPojo);
            if(m>0){
                result="success";
            }else{
                result="error";
            }

        }else{
            result="该名称已存在";
        }

        return result;
	}

	public String WXUserPojoDel(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		  int m=wxUserPojoDao.WXUserPojoDel(wxUserPojo);
	        String result="error";
	        if(m>0){
	            result="success";
	        }

	        return result;
	}

	public String WXUserPojoUpd(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		  int m=wxUserPojoDao.WXUserPojoUpd(wxUserPojo);
	        String result="error";
	        if(m>0){
	            result="success";
	        }

	        return result;
	}

	public List<WXUserPojo> WXUserPojoList(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		return null;
	}

	public WXUserPojo findByUSER_NO(String USER_NO) {
		// TODO Auto-generated method stub
		return null;
	}

	public List<WXUserPojo> WXUserPojoPageList(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer WXUserPojoPageTotal(WXUserPojo wxUserPojo) {
		// TODO Auto-generated method stub
		return null;
	}

	public WXUserPojo selectonebyName(String USER_NAME) {
		// TODO Auto-generated method stub
		return null;
	}



}
